﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace BLL
{
    public class Produdo : BASEDALL<tbObjeto>
    {

        public IEnumerable<tbObjeto> ListarUsandoQnt(int lngQtdReg)
        {
            var query = db.tbObjeto.Take(lngQtdReg).OrderBy(emp => Guid.NewGuid());
            return query;
        }

        public int QtdObjetosPorTipo(int lngIdTipo)
        {
            var query = db.tbObjeto.Select(c => c.idTipo == lngIdTipo);
            return query.Count();
        }

        
    }
}
